var express = require('express');
var router = express.Router();

const {addOrder,delOrder,findOrderByUser,changeOrderInfo,findOrderByID,findAllOrder,changeOrderStatus,findOrder} = require("../controllers/orderCon")

router.post("/addOrder", addOrder)//新增订单
router.post("/delOrder", delOrder)//新增订单
router.post("/findOrderByID", findOrderByID)//ID查找订单
router.post("/changeOrderInfo", changeOrderInfo)//修改订单的信息
router.post("/findAllOrder", findAllOrder)//查找所有的订单
router.post("/changeOrderStatus", changeOrderStatus)//修改订单的状态
router.post("/findOrder", findOrder)//修改订单的状态
router.post("/findOrderByUser", findOrderByUser)//修改订单的状态

module.exports = router;
